<template>
  <div class="icon-info-wrap">
    <div v-for="(item, index) in datas" :key="item.title" class="wrap-item">
      <div class="icon-box">
        <div :class="`icon-${index + 1}`" />
      </div>
      <div class="infos">
        <div class="title-box">
          <div class="icon">
            ▶
          </div>
          <div class="title">
            {{ item.title }}
          </div>
        </div>
        <div class="value-box">
          <div class="value">
            {{ item.value }}
          </div>
          <div class="unit">
            {{ item.unit }}
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
// eslint-disable-next-line no-undef
defineProps({
  datas: {
    type: Array,
    default: () => [],
  },
});
</script>

<style lang="less" scoped>
@import "./index.less";
</style>